package website.lhc.chapter6;

import lombok.extern.slf4j.Slf4j;

/**
 * @author: longhc@citycloud.com.cn
 * @since: 2023/1/5 13:48
 * @version: 1.0
 */
@Slf4j
public class StateTest {
    public static void main(String[] args) {
        Context context = new Context();

        StartState startState = new StartState();
        startState.action(context);
        log.info(context.getState().toString());

        StopState stopState = new StopState();
        stopState.action(context);
        log.info(context.getState().toString());
    }
}
